import request from '@/utils/request'

// 获取热门服务列表
export function getHotServicesList() {
  return request({
    url: '/hotServices/list',
    method: 'get'
  })
}

// 添加热门服务
export function addHotService(data) {
  return request({
    url: '/hotServices/add',
    method: 'post',
    data
  })
}

// 更新热门服务
export function updateHotService(data) {
  return request({
    url: '/hotServices/update',
    method: 'put',
    data
  })
}

// 删除热门服务
export function deleteHotService(serviceId) {
  return request({
    url: `/hotServices/delete/${serviceId}`,
    method: 'delete'
  })
} 